package com.xinlong.shop.core.temp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 访问统计-临时给老系统用的
 * </p>
 *
 * @author Sylow
 * @since 2022-12-23
 */
@TableName("t_buy_statistics")
public class BuyStatistics implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空")
    private Integer userId;

    /**
     * 页面id
     */
    @NotNull(message = "页面id不能为空")
    private Integer pageId;

    /**
     * 场次id
     */
    private String ruleId;

    /**
     * 访问时间
     */
    private Long visitTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public Integer getPageId() {
        return pageId;
    }

    public String getRuleId() {
        return ruleId;
    }

    public void setRuleId(String ruleId) {
        this.ruleId = ruleId;
    }

    public void setPageId(Integer pageId) {
        this.pageId = pageId;
    }
    public Long getVisitTime() {
        return visitTime;
    }

    public void setVisitTime(Long visitTime) {
        this.visitTime = visitTime;
    }

    @Override
    public String toString() {
        return "TBuyStatistics{" +
            "id=" + id +
            ", userId=" + userId +
            ", pageId=" + pageId +
            ", ruleId=" + ruleId +
            ", visitTime=" + visitTime +
        "}";
    }
}
